import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import LoginComponent from './LoginComponent';
import * as SessionAction from '../my/session/SessionAction';

@connect(mapStateToProps, mapDispatchToProps)
export default class LoginContainer extends React.Component {
  constructor(props, context) {
    super(props, context);
  }

  render() {
    return (
      <div id="login-container">
        <LoginComponent {...this.props} />
      </div>
    );
  }
}

function mapStateToProps () {
  return {};
}

function mapDispatchToProps(dispatch) {
  return {
    actions: bindActionCreators(SessionAction, dispatch),
  };
}
